import axios from '@/tools/index.js'

export function sendSms (ops) {
  return axios.get('/user/send', {
    params: ops
  })
}
export function register (ops) {
  return axios.post('/user/register', ops)
}
export function login (ops) {
  return axios.get('/user/login', {
    params: ops
  })
}
export function getDetail (ops) {
  return axios.get('/pro/detail', {
    params: ops
  })
}
export function addCart (ops) {
  return axios.post('/cart/add', ops)
}
export function getData () {
  return axios.get('/pro')
}
export function getKind (v) {
  return axios.get('/pro/kind', {
    params: v
  })
}
export function getPage (v) {
  return axios.get('/pro/page', {
    params: v
  })
}
